WeDevs\Wpuf\Lib\Gateway\Paypal D

Total Complexity 274
Dependencies 3
Dependents 3
Total lines 2,001
Lines of code 1,479
Logical lines of code 641
Comment lines 251
Methods 31
Properties 7

Methods 31

Method Rating Maintainability Complexity Lines of code
prepare_to_send()
D
20
40 222
process_subscription_payment()
C
30 29 113
handle_subscription_created()
C
34 26 80
handle_paypal_return()
B
37 21 72
cancel_subscription()
B
32 17 110
handle_subscription_activated()
B
37 15 69
process_webhook()
B
40 15 65
get_or_create_plan()
A
34 11 101
process_payment_capture()
A
38 12 65
verify_webhook_signature_from_input()
A
40 10 59
handle_webhook_request()
A
47 11 32
paypal_settings_update_notice()
A
41 4 89
get_or_create_product()
A
46 7 37
handle_pending_payment()
S
56 7 16
handle_subscription_cancelled()
S
46 5 40
check_paypal_return()
S
59 6 13
payment_options()
S
39 1 80
get_payer_info()
S
56 5 18
get_pack_id_by_subscription()
S
57 4 18
register_webhook_endpoint()
S
54 3 23
get_access_token()
S
54 3 21
inject_webhook_css()
S
60 3 17
dismiss_paypal_notice()
S
63 4 10
create_trial_payment_record()
S
52 2 24
get_user_id_by_subscription()
S
56 2 22
handle_payment_features()
S
65 3 8
update_coupon_usage()
S
65 3 9
__construct()
S
54 1 20
subscription_cancel()
S
64 2 9
get_webhook_events_notice()
S
62 1 13
clean_up_transients()
S
75 1 4